package com.cskaoyan.service;

import com.cskaoyan.dao.UserDao;
import com.cskaoyan.dao.UserDaoImpl;

public class UserServiceImpl implements UserService{

    //UserDao userDao = new UserDaoImpl();
    UserDao userDao;
    String username;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public void sayHello(String name) {
        userDao.daoSayHello(name);
        System.out.println("hello " + name);
    }
}
